<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

    <style>
        .act{
            background-color: lightyellow;
        }
        .fo-love{
            font-size: 22px;
            color: green;
        }
    </style>
</head>
<body>
    <!--show 只是修改样式，不会重构dom结构-->
    <div id="app">
       <ul>
           <li v-for="(n,i) in boys">{{i +1}}{{n.name}} {{n.age}}
            <a href="" v-for="tag in n.tags">{{tag}}</a></li>
       </ul>
        <button @click="push">push</button>
    </div>

</body>
    <script>
        var  app = new Vue({
            el:'#app',
            data:{
              boys:[
                  {
                      name:'yy',
                      age:18,
                      tags:[
                          '广州',
                          '深圳'
                      ]
                  },
                  {
                      name:'ll',
                      age:28,
                      tags:[
                          '上海',
                          '九江'
                      ]
                  }
              ]
            },
            methods:{
                push:function () {
                    this.boys.push({name:'nn',age:18})
                }
            }
        })
    </script>
</html>